package cate.common.table.d;

import cate.common.table.common.ParamSheet;
import cate.common.table.farm.dailyfb.DailyFbExcel;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

public class GDDailyFb {

    @NoteField(value = "副本关闭状态")
    public static final int FB_OPEN = 1;

    @NoteField(value = "副本关闭状态")
    public static final int FB_UN_OPEN = 0;

    @NoteField(value = "各副本每天免费挑战次数")
    public static int PLAY_TIMES_FREE;

    @NoteClass(value = "每日副本-副本类型")
    public static class Type {

        @NoteField(value = "默认副本类型")
        public static final Integer DEFAULT = 1;

        public static int toFuncId(int t) {
            int funcId = GDFunc.DAILY_FB + t;
            if (GDFunc.DAILY_FB_END < funcId || GDFunc.DAILY_FB_FIRST > funcId)
                return -1;
            return funcId;
        }

        public static int toType(int funcId) {
            int type = funcId - GDFunc.DAILY_FB;
            return type;
        }
    }


        public static void initialize(ParamSheet paramSheet) {
            PLAY_TIMES_FREE = GDParamTool.getInt(paramSheet, 50000, 2);
        }
}
